home *** CD-ROM | disk | FTP | other *** search
- /*
- ** this is the class decloration of TTEDoc class
- */
- #define _H_TTEDoc
-
-
- #include "TScrollDoc.h"
-
-
- struct TTEDoc:TScrollDoc
- {
- TEHandle fTEHandle;
-
- TDoc* Init(OSType theCreator, SFReply *SFInfo);
- void Delet( void);
-
- Boolean InitDoc( void);
-
- void ScrollContents( short dh, short dv);
- void SetScrollBarValues( void );
-
- void GetContentRect( Rect *r);
- void SetTERect( void);
- short GetVertSize(void);
- short GetHorizSize(void);
- short GetVertLineScrollAmount(void);
- short GetHorizLineScrollAmount(void);
-
- Boolean CanSelectAll(void);
- void DoSelectAll(void);
- Boolean HaveSelection(void);
-
- void DoKeyDown(EventRecord *theEvent);
- void AddText(Ptr text, long len);
-
- Boolean CanPaste(OSType theType);
- void DoClear(void);
- Boolean DoCopy(Handle *theData, OSType *theType);
- Boolean DoCut(Handle *theData, OSType *theType);
- void DoPaste(Handle theData, OSType *theType);
-
- void Activate(void);
- void Deactivate(void);
-
- void Draw(Rect *r);
-
- void ContentClick(EventRecord *theEvent);
-
- void DoIdle(void);
- void AdjustCursor(Point where);
-
- void DoGrow(EventRecord *theEvent);
- void DoZoom(short partCode);
-
- OSType GetDocType(void);
- Boolean CanSaveAs(void);
- Boolean ReadDocFile(short refNum);
- Boolean WriteDocFile(short refNum);
-
- };/*end of TTEDoc class decloration*/
-
- pascal Boolean MyClickLoop(void);
-
-